package com.marsproj.bankingmanagesystem.service;

import com.marsproj.bankingmanagesystem.dao.FlowDao;
import com.marsproj.bankingmanagesystem.entity.Flow;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FlowServiceImpl implements FlowService{

    @Autowired
    private FlowDao flowDao;

    @Override
    public int addFlow(Flow flow) {
        flowDao.addFlow(flow);
        return 0;
    }

    @Override
    public List<Flow> queryFlow(String id) {
        return flowDao.queryFlow(id);
    }
}
